-- GENERATED SPELL FOR [Sludge Belcher] --


function spell0_16029(pUnit, Event) --@Acidic Sludge,n/a--
pUnit:FullCastSpellOnTarget(27891,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16029', 21500, 1)
end

function spell1_16029(pUnit, Event) --@Acidic Sludge,n/a--
pUnit:FullCastSpellOnTarget(54331,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16029', 21500, 1)
end

function Sorts_16029(pUnit, Event)
local choix_sorts_16029 = math.random(0, 1)
if choix_sorts_16029 == 0 then
pUnit:RegisterEvent('spell0_16029', 1, 1)
end
if choix_sorts_16029 == 1 then
pUnit:RegisterEvent('spell1_16029', 1, 1)
end
end

function mob16029_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16029', math.random(1500, 3000), 1)
end

function mob16029_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16029_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16029_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16029, 1, 'mob16029_Action')
RegisterUnitEvent(16029, 2, 'mob16029_Leave')
RegisterUnitEvent(16029, 3, 'mob16029_Kill')
RegisterUnitEvent(16029, 4, 'mob16029_Die')
